﻿@{
    ViewBag.Title = "积分记录";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@model Ducu.SRV.ViewModel.User.CreditsModel
@using Global.Core.ExtensionMethod

<div class="page-header">
    <h2><span class="glyphicon glyphicon-list-alt" aria-hidden="true"></span><span class="after-glyphicon">积分记录</span></h2>
</div>
<div class="container">
    @{DateTime date = new DateTime();}
    @for (int i = 0; i < Model.Items.Count; i++)
    {
        var item = Model.Items[i];
        if (item.CreateTime.Date != date)
        {
            {
                date = item.CreateTime.Date;
            }
            <div class="col lead" style="margin: 10px 0;"> <span class="glyphicon glyphicon-calendar"></span> @item.CreateTime.ToChineseDate()</div>
        }
        <div class="row">
            <div class="col-lg-1 col-md-2 col-sm-2 col-xs-12"><small>@item.CreateTime.ToChineseTime()</small></div>
            <div class="col-lg-11 col-md-10 col-sm-10 col-xs-12">@item.Status.GetEnumDescription() <a href="/Plan/" style="margin-left:24px;">@item.PlanTitle</a></div>
            @*<div class="col-lg-10 col-md-8 col-sm-8 col-xs-12"></div>*@
        </div>
    }
    @Html.Action("_Pager", "Shared", Model.Pager)
</div>
